<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script src="resources/shadow-dom.js"></script>
</head>
<body>
<pre id="console"></pre>
<script>
var elementNotInDocument = document.createElement('div');
elementNotInDocument.id = "element-not-in-document";
elementNotInDocument.addEventListener('click', function(event) {
    debug(dumpNodeList(event.path));
});
var clickEvent = document.createEvent("MouseEvents");
clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
elementNotInDocument.dispatchEvent(clickEvent);
</script>
</body>
</html>
